﻿ 

	
<!DOCTYPE html>  
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="邮件发送记录">  
    <meta name="description" content="邮件发送记录">  
    <title>邮件发送记录管理</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>
    <script type="text/javascript" src="/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript" src="/js/tiny.js"></script>  
</head>  

<body>  
    
   
    <!-- edit form窗体（开始） -->  
   
        <form id="fm" method="post" enctype="multipart/form-data" novalidate>  
        	  	  	<input type="hidden" name="id" > 
        	  	  	<input type="hidden" name="callFrom" >
        	  	  	<input type="hidden" name="callId" >
        	  	  	<input type="hidden" name="attachment" >
        	  	  	<input type="hidden" name="attachment2" disabled="true" >
	        		     <table>
	        		     	<tr>
	        		     	   	  <td>人选名称:</td>
	        		     	   	  <td><input name="cvName" value="人选名称" class="easyui-box">  </td>
	        		     	  </tr>
	        		     	  <tr>
	        		     	   	  <td>推荐职位:</td>
	        		     	   	  <td><input name="jobName" class="easyui-box">  </td>
	        		     	  </tr>
	        		     	   <tr>
	        		     	   	  <td>主题:</td>
	        		     	   	  <td><input name="subject" class="easyui-box">  </td>
	        		     	  </tr>
	        		     	  <tr>
	        		     	   	  <td>发送人邮箱:</td>
	        		     	   	  <td><input name="sender" class="easyui-box"></td>
	        		     	  </tr>
	        		     	  <tr>
	        		     	   	  <td>收件人邮箱:</td>
	        		     	   	  <td><input name="reciever" class="easyui-box"></td>
	        		     	  </tr>
	        		     	  <tr>
	        		     	   	  <td>内容:</td>
	        		     	   	  <td><textarea  id="elm1" name="content" style="width:600px;height:150px"></textarea>  </td>
	        		     	  </tr>
	        		     	  <tr>
	        		     	   	  <td>推荐信附件(中)：</td>
	        		     	   	  <td><input  name="attachmentName" style="width:200px;"   class="easyui-box">
	        		     	   	  	<input type="checkbox" id="cbca" checked="checked" onclick="caclick()" >
	        		     	   	   </td>
	        		     	  </tr>
	        		     	  <tr>
	        		     	   	  <td>推荐信附件(英)：：</td>
	        		     	   	  <td><input  name="attachment2Name" style="width:200px;" disabled="true" class="easyui-box"> 
	        		     	   	  <input type="checkbox" id="cbea" onclick="eaclick()">	
	        		     	   	  </td>
	        		     	  </tr>
	        		     	  
	        		     </table> 	
        </form>  
        <div  style="text-align:center">  
          <a href="javascript:void(0)" id="btn-save" class="easyui-linkbutton" iconCls="icon-ok" ">发送</a>  
          <a href="javascript:void(0)" id="btn-close" class="easyui-linkbutton" iconCls="icon-cancel" >关闭</a>  
          
        </div>
 
    <!-- edit form窗体（结束） -->     
    
    <script type="text/javascript">  
    	    
          $('#fm').form({
        	    onLoadSuccess: function(data){
        	     
        	        tinyMCE.get('elm1').setContent($('#elm1').val());
        	    	
        	    }
          });     	
    	    
    	
        var url;  
        function caclick(){
        	//console.log($("#cbca"));
        //	alert($("#cbca").attr("checked"));
        	if($("#cbca").attr("checked")=="checked"){
        		
        		 $('#fm').find('input[name="attachment"]').removeAttr("disabled");
        	   $('#fm').find('input[name="attachmentName"]').removeAttr("disabled");
          }else{		
          	
        	   $('#fm').find('input[name="attachment"]').attr("disabled","disabled");
        	   $('#fm').find('input[name="attachmentName"]').attr("disabled","disabled");
        	}
        }	
        function eaclick(){
        	
        	if($("#cbea").attr("checked")=="checked"){
        		 $('#fm').find('input[name="attachment2"]').removeAttr("disabled");
        	   $('#fm').find('input[name="attachment2Name"]').removeAttr("disabled");
          }else{		
        	   $('#fm').find('input[name="attachment2"]').attr("disabled","disabled");
        	   $('#fm').find('input[name="attachment2Name"]').attr("disabled","disabled");
        	}
        }
       
        function formLoad(url){
        	  $('#fm').form('load',url);
        }	
        function save(){          	   
        	  if (!$('#fm').form('validate')) return; 
            $('#fm').form('submit',{  
                url: url,  
                onSubmit: function(){  
                    return $(this).form('validate');  
                },  
                success: function(result){  
                    var result = eval('('+result+')');                      
                    if (result.success == true){  
                        $.messager.alert('信息',result.msg,'info');  
                        $('#dlg').dialog('close');      // close the dialog  
                        $('#dg').datagrid('reload');    // reload the user data  
                    } else {  
                        $.messager.alert('错误',result.msg,'error');
                    }  
                }  
            });  
        }  
       
        
        
        
    </script>  
     
     

     
     
     
</body>  
</html>
<script>

            //$('#fm').form('load','/oa/oaEmailSend/getcrsendemail.do?id=15');
            //$('#fm').form('load','/talent/cv/get.do?id=1');
            

  
</script>